fixed authentication bugs and javascript related bugs