Modify Authentication for a more secure access

E-mail and username are now correctly stored in database.
ref #123