add 'remember me' and markdown
refactoring