App with custom login

Hello, I made a user login screen. But I want the logged in users of this app to be restricted. So only my borders should be able to enter people. How can I do that?