Some db errors fixed
Starting to implement user-side validations