Fixed error in login page where page is blocked when tried logging in