Fix #4, Fix #5, add user registration date to db, prevent email collision, add functions for checking username and email existence