added persistent login session authentication

Added login page and session authentication.