Adding username and password functionality