Added the user authentication. Not workig copy