added input for username and password