User can now login and logout and register

Added alert handling on client