User constructor added

can be used to check credentials with database