logout button added, upload image function