authentication done,fixed mroe bugs