Fix login to work again after pressing back

Change-Id: Id002a55e9990e44446f1c9df9919f6183d64065b
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>