public UserVO getStudent(UserVO userVO)
			throws LibraryManagementException {
		ConnectionFactory connectionFactory = new ConnectionFactory();
		Connection connection;
		try {
			connection = connectionFactory.getConnection();
		} catch (LibraryManagementException e) {
			throw e;
		}
		ResultSet resultSet = null;
		PreparedStatement preparedStatement = null;
		try {
			if (userVO != null) {
				preparedStatement = connection
						.prepareStatement("select * from STUDENT where EMAIL = ?");
				preparedStatement.setString(1, userVO.getUserId());
				resultSet = preparedStatement.executeQuery();
				if(resultSet.next()) {
					userVO = new  UserVO();
					userVO.setId(resultSet.getInt("ID"));
					userVO.setUserId(resultSet.getString("EMAIL"));
					userVO.setPassword(resultSet.getString("PASSWORD"));
					userVO.setUserType("student");
				} else {
					userVO = null;
				}
			}
		} catch (SQLException e) {
			throw new LibraryManagementException(ExceptionCategory.SYSTEM);
		} finally {
			if (preparedStatement != null) {
				try {
					preparedStatement.close();
				} catch (SQLException e) {
					throw new LibraryManagementException(
							ExceptionCategory.SYSTEM);
				}
			}
			connectionFactory.closeConnection(connection);
		}
		return userVO;
	}