added border of text field
code refactored