Modified regex to accept usernames with dots ex: foo.bar