fix some things for login restrictions