changed navigation to 'login' instead of 'signIn' to reduce conflicts
added debugging function into js