added filter to application controller for authentication, created model associations