Polished login functionality