Fixed login issue with the form