Login form bugfix