Fix for error in login part