fixes, renamed login "Index"

streamliined main, medical, pages. fixed dashboard bug