login,photo upload functionality