Fixed minor login bug