Deleted old user login code. Added access rules