added functionality to register and make microposts