Complete Login Error Case Test Code. Function Complete.