Fixed login bug caused by profile photo feature