Added error and login pages