Fix to getSessionByUsername hibernate code

Signed-off-by: Wim Tibackx <wim.tibackx@student.kdg.be>