Minor Bug fix in login