Created protected pages and login system with role types.