Backend login function...

... connected to the PostGreSQL database!!!