added ajax login.
no longer showing table if user is not logged in.