create first version of login in java