Added - implemented user and email validation, added logging