added close buntton functionality
started forgot password and added type to messaging response