Update LoginForm.class.php

if the usernamefield is an email, save it as email for the registration not as username
Merge pull request #193 from joshuaruesweg/patch-2

Update LoginForm.class.php