Added next and done functionality to login form