Finished user registration and login logic, added most common validation, hashing of password etc.