Neo,
have a look at this for building/customizing the log in page
Set up your access roles https://world.mendix.com/display/howto25/Set+up+access+rules look here for more information