Save username and password. Link login and main page