Login and page security checking

Signed-off-by: THE DINJ <thedinj@yahoo.com>