Staging two

Added a regex for the email login and changed the username params to always be lowercase.