Fix function page  and  add login page