Updated login activity java code