implemented simple login. fixed up view tools page. started file stuff