Bug fix in registrations

Fix a error which causes the server to be unable to register new users (Error was in how jms handled exceptions, by default jms doesn't know how to handle "RegistrationException" 

Fix a bug in saving user accounts
(redundant "/n", default behavior of FileWriter already accounts for it)

I am also thinking about refactoring the receive method, but there may be more urgent tasks.