Changed back to redirect for login page instread of render in-request