Updated login page controller