Create Custom Handler for UsernamePasswordAuthentication.