Simplified auto login redirect by adding authentication/authorization checks in web.config; removed redundant code from .aspx files.