Login now saves the last sucessful login and autofills the form