added name input functionality