Login and newpost routes
Adding API routes