edit post ok
login validate in a stupid way, need to be improved in future