Hi Don,
I don't know whether i understood completly your actual problem or not.
But when i take the code to my IDE, i found two compiler error.
1) writeFile(): no need of handling FileNotFoundException there, because no code throwing this checked exception.
2) okUsername(): should return boolean value. Method should have a default return type irrespective of the return statement which is there in condition scope.
Thanks,
Rajasekar.