More edits for login, logout and register