added fields for username and password