Implemented basic page detection and redirection on log in.