Added / to the end of each endpoint..
Changed the error message for not logged in to be valid
Added import of new user-file
Added error handleing for endpoints
Removed user-related endpoints from misc file
Added slash to endpoints in requests
Added a dedicated user-file for user related endpoints
Added error handlers that present the error message in flash instead of crashing everything.