added a working login post method