eliminate javascript warnings by adding missing semicolons and some others
eliminate javascript warnings by adding missing semicolons and some others
implementing isLoggedIn: validating