Render 404 on invalid message id
Add tests for sign up and login