simple calc with login function