Edited UserManager.register()
	-Checks for Trailing/Leading whitespaces
	-Finally{} statement added to close connection successfully.