Demo API login, register, post and comment