Login functionality added, though not possible to compile!!!