modify Login.java to work with views