fix bug and change FBlogin

fix 500 serverError(render function)
change Basehandler.py  add render and error function
let front page FBlogin function work