Adds login and register forms that display json data when forms are validated.