some first efforts with php rest side of login but to be replaced by slim or something, login form validation in place