little tidying up
promisify login
correct login flash message handlebarst
refactor login