Added logic to check if user if logged in, also added upload file form