restructred files

and added simple user authentication