Add function for entering username and password