@Override
	public boolean addUser(User user)
	{
		/*
		 * we add a new unique user to UserDB
		 * if User name exist this function will return false
		 */
		{
			Session session = null;
			boolean succses = true;
			try {
				session = factory.openSession();
				session.beginTransaction();
				session.save(user);
				session.getTransaction().commit();
				log.info("User added successfully to the DB");
			} catch (HibernateException e) {
				if (session != null) {
					session.getTransaction().rollback();
					succses = false;
					log.info("User wasent added to the DB");
					throw new ForumException(e);
					
				}
				
			} finally {
				if (session != null) {
					session.close();
				}
				return succses;
			}
		}
	}