Can't get login to work with post method