Method to verify user credentials