Fix unable to find post request

When putting on the login button, it says cannot find post route. This creates a post route.