-Added session checker to functions
-Added file upload validation