Refactor things to function.
Create function for only showing the credentials.
Merge pull request #7 from akbargumbira/master

Refactor things to function.