19/07/2013(2)

- Added close connection to sql database
- fixed login error