Updated login and registeration using the username