Wokring photo uploading and created a registration controller