added login stuff with additional fields