PHP class for registration and sign in module