Added an else case in case the user tries to visit the registration page after he/she already registered
Now uploading optional images during the registration process
new code for optional image upload during registration