create config and function login php