Move the formatting of user credentials into the config, this allows for more flexible parameters e.g: require active => true for user to login.