Fixed bug wherein login was not required to view resources