Got POST and GET requests to work for login