Revamped the login process.