Centralized cookie verification and got rid of 'None' on login page