fix submit in the login functionality