added changes
added authentiation fix, can login and out and included some methods