major rewrite, making things more proper, and preventing bug that signed the admin out right after the sign in