set preauthenticate on request to validate user
remove debugigng writeline