Added edge case for log in