@Override
	public User removeUser(String login) {
		
		PreparedStatement pStmt = null;
		
		User user = null;
		Integer result;
				
		user = getUser(login);
		
		if (user != null){
			
			try {
				
				pStmt = conn.prepareStatement("DELETE FROM USER WHERE login = ?;");
				pStmt.setString(1, login);
				result = pStmt.executeUpdate();
				
				Set<Account> accounts = getAccounts(user);
				
				for(Account a:accounts){
					
					removeAccount(user, a);
					
				}
				
			} catch (SQLException e) {

				e.printStackTrace();
				
			} finally {
				
				closeResource(pStmt);
				
			}
			
		}

		return user;
		
	}