added user login, editting and image uploading