process login post requests