first steps to make login ajax also work