Added login and registration bugs