change get to post on login route