added middleware for security checking, styled home page