Add some validations to the user model
Added javascript rendering next image; haven't tested if it works or not yet.