started working on truncation of long posts
fixed bug in login