Server side validations

Form validations for registration and add it to the users table
Raw development needs code refactoring