Authentication with session implemented.