adds logging in with either username or email