add post and flash in login form