got Slim Framework to cooperate and completed the login function