add post, friend to database
refine login routine