added authentication and changed around the main area