refactor private login details