fixing the errors and the routes
slowly kil the bugs in the auth and for the editing the posts