Added "Authentication Required" control and register check