started authentication logic
don't use layout on error page
added authentication logic