Reviewing Loginfunction and Delete Function