@Override
	public User checkUserName(String userName) {
		User myUser = null;
		try {
			InputStream resourceAsStream = this.applicationContext.getResource(dataSourceFile).getInputStream();
			InputStreamReader in = new InputStreamReader(resourceAsStream);
			BufferedReader buffer = new BufferedReader(in);
			String line;
			while ((line = buffer.readLine())!=null && myUser==null) {
				User userTemp = new User(line);
				if (userTemp.getUserName().equals(userName)){
					myUser = userTemp;
				}
			}
			resourceAsStream.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return myUser;
	}