public static LoginRequest getLoginData() {
		
		Console console = System.console();
		String input = "";
		String userId;
		String password;
		
		while(!isCPRNumber(input)) {
			System.out.println("Enter CPR number:");
			input = console.readLine();
			if(!isCPRNumber(input)) {
				System.out.println("The input is not a CPR number.\n");
			}
		}
		
		userId = input;
		input = "";
		
		while(!isValidPassword(input)) {
			System.out.println("Enter user password:");
			input = console.readLine();
			if(!isValidPassword(input)) {
				System.out.println("The input does not meet the requirements for a password.\n");
			}
		}
		
		password = input;
		
		return new LoginRequest(userId, Hasher.hashPassword(password));
	}