custom Login step in Java