Implements login and protected the pages.