Removed more code for authentication.