Add 'next' functionality to login page