Adding image upload
Handling local authentication