public User findByEmailPassword(String email, String password) throws InstanceNotFoundException {
		User user = null;

		try {
			Connection connection = DataSourceUtils.getConnection(dataSource);

			PreparedStatement statement = connection
					.prepareStatement("SELECT name, last_name, email, password, admin, id FROM usuario WHERE email = ? AND password = ?");
			statement.setString(1, email);
			statement.setString(2, password);
			
			// "SELECT email, password, name, last_name FROM user WHERE id = ?");
			ResultSet resultSet = statement.executeQuery();

			if (resultSet.next()) {
				String _email = resultSet.getString(3);
				String _password = resultSet.getString(4);
				String name = resultSet.getString(1);
				String last_name = resultSet.getString(2);
				boolean admin = resultSet.getBoolean(5);
				int id=resultSet.getInt(6);

				user = new User(id, _email, _password, name, last_name, admin);
			} else {
				throw new InstanceNotFoundException();
			}
			//connection.close();
		} catch (SQLException e) {
			throw new RuntimeException(e);
		}

		return user;
	}