Fixed problems with textboxes

Ready for implementing Sql