image size and type validation, fixed mysql error when inserting email, allow only unique username and email, give suggestions for a new username