Polished login functionality.