fixed authentication double render//
fixed alert for (un)successful login